//
//  SelectFunctionVC.m
//  IJKPLAYER_Ning
//
//  Created by NHT on 2020/3/3.
//  Copyright © 2020 HYXF. All rights reserved.
//

#import "SelectFunctionVC.h"
#import "PushVideoVC.h"
#import "LookVideoVC.h"

@interface SelectFunctionVC ()

@end

@implementation SelectFunctionVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor yellowColor];
    
    UIButton *getVIdeo = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    [self.view addSubview:getVIdeo];
    [getVIdeo setTitle:@"观看直播" forState:UIControlStateNormal];
    [getVIdeo setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    getVIdeo.backgroundColor = [UIColor blackColor];
    [getVIdeo addTarget:self action:@selector(getvideoClick) forControlEvents:UIControlEventTouchUpInside];
    
    UIButton *pushVIdeo = [[UIButton alloc] initWithFrame:CGRectMake(100, 250, 100, 100)];
       [self.view addSubview:pushVIdeo];
    [pushVIdeo setTitle:@"进行直播" forState:UIControlStateNormal];
       [pushVIdeo setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
       pushVIdeo.backgroundColor = [UIColor blackColor];
       [pushVIdeo addTarget:self action:@selector(pushvideoClick) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)getvideoClick{
    LookVideoVC *vc = [[LookVideoVC alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

-(void)pushvideoClick{
    PushVideoVC *vc = [[PushVideoVC alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
